<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%--
  Created by IntelliJ IDEA.
  User: lion
  Date: 3/7/17
  Time: 3:19 PM
  To change this template use File | Settings | File Templates.
--%>

<html>
<head>
    <title>Success</title>
</head>
<body>
<div class="ret">
    <c:forEach items="${list}" var="retlistBean">
        <table>
            <thead>
            <td>task_id</td>
            <td>resourcename</td>
            <td>task__delivertime</td>
            <td>finished</td>
            </thead>
            <c:forEach items="${retlistBean.latesttasks}" var="task">
                <tr>
                    <td>${task.task_id}</td>
                    <td>${task.resourcename}</td>
                    <td>${task.task__delivertime}</td>
                    <td>${task.finished}</td>
                </tr>
            </c:forEach>
        </table>
    </c:forEach>

    <button id="debug">debug</button>
    <div id="json" hidden>
        ${json}
    </div>

    <script src="js/jquery-3.1.1.js"></script>
    <script src="js/main.js"></script>
    <script>
        $('#debug').click(function () {
            $('#json').toggle()
        });
    </script>
</div>
</body>
</html>
